package com.study.reactor.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author yuantongqin
 * desc:
 * 2020-11-06
 */
@ConditionalOnClass(value = {User.class})
@Configuration
public class DataConfig {

    @Bean
    public Persion persion(){
        Persion persion = new Persion();
        persion.name = "张三";
        return persion;
    }
}
